package com.sdry.web.controller.cb;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sdry.utils.ResponseUtil;
@Controller
@RequestMapping("sendQQMail_num")
public class sendQQMailNumController {
	//邮件发送个数
	public static int sendQQMail_num = 0;
	/** 
	 * 修改邮件发送个数
	 * @param sendQQMailNum 邮件发送个数
	 * @param response
	 * @throws Exception
	*/
	@RequestMapping("/upSendQQMail_num")
	public void upSendQQMail_num(int sendQQMailNum,HttpServletResponse response){
		sendQQMail_num = sendQQMailNum;
		try {
			ResponseUtil.write(response,1);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	/** 
	 * 查询邮件发送个数
	 * @param response
	 * @throws Exception
	 */
	@RequestMapping("/findSendQQMail_num")
	public void findSendQQMail_num(HttpServletResponse response){
		try {
			ResponseUtil.write(response,sendQQMail_num);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
